StartSimulationEngine  

AddSkyEntity    sky1

AddLightSourceEntity    sun1

AddHeightFieldWithHeightSamples    ground1
	/TextureResource:"water1.dds"
	/HeightFieldShapeProperties:16  100  16  100  1  -1000  10  10

UpdateCameraView  
	/EyePosition:8  15  8  	/LookAtPoint:0  10  0



AddNewEntity    deepground  	/Position:0  0.005  0
	/MeshTranslation:0  10.0  0
	/UsesAlphaBlending:true

AddBoxShape  
	/Dimensions:1000.0  0.01  1000.0  	/Mass:0.01
	/Texture:"water1.jpg"
	/DiffuseColor:0  0  0.627451  1


AddNewEntity    ent2  	/Position:0  8.0  0
	/LinearDamping:50
	/AngularDamping:1.0

AddBoxShape  
	/Dimensions:1.0  0.3  5.0  	/Mass:1.0
	/MaterialProperties:1    0    0
	/DiffuseColor:0  0  0.5019608  1

AddBoxShape  
	/Dimensions:0.8  0.4  0.5  	/Mass:0.1
	/Position:0    0.35    2.0
	/MaterialProperties:1    0    0
	/DiffuseColor:1  1  1  1

AddNewEntity    ent3  	/Position:0  10.0  0
	/Position:0.6    -0.2    0
	/ParentEntity:ent2
	/LinearDamping:50
	/AngularDamping:1.0

AddCapsuleShape  
	/Radius:0.2  	/Height:5.0  	/Mass:0.1
	/Orientation:90    0    0
	/DiffuseColor:1  0  0  1


AddNewEntity    ent4  	/Position:0  10.0  0
	/Position:-0.6    -0.2    0
	/ParentEntity:ent2
	/LinearDamping:50
	/AngularDamping:1.0

AddCapsuleShape  
	/Radius:0.2  	/Height:5.0  	/Mass:0.1
	/Orientation:90    0    0
	/DiffuseColor:1  0  0  1


AddNewEntity    ent5  	/Position:0  10.0  0
	/Position:0    -0.2    2.7
	/ParentEntity:ent2
	/LinearDamping:50
	/AngularDamping:1.0

AddBoxShape  
	/Dimensions:0.8  0.2  0.2  	/Mass:0.1
	/DiffuseColor:1  0  0  1

AddNewEntity    ent6  	/Position:0  10.0  0
	/Position:0    -0.2    -2.7
	/ParentEntity:ent2
	/LinearDamping:50
	/AngularDamping:1.0

AddBoxShape  
	/Dimensions:0.8  0.2  0.2  	/Mass:0.1
	/DiffuseColor:1  0  0  1

AddCustomSpriteEntity    sprite1
	/ParentEntity:ent2
	/Position:0  -0.4  4.0
	/Orientation:90    0    0
	/SpritePivotType:Fixed
	/Width:2.0
	/Height:5.0
	/Texture:"foam.jpg"
	/UsesAlphaBlending:true


AddRelativeChaseCamera    cam1
	/Position:-10.0  5.0  10.0
	/ChaseTarget:ent2

FlushScript  

ent3.BuoyantForce(0, 0, 0, true, 10, 100.0, 0)
ent4.BuoyantForce(0, 0, 0, true, 10, 100.0, 0)
ent5.BuoyantForce(0, 0, 0, true, 10, 100.0, 0)
ent6.BuoyantForce(0, 0, 0, true, 10, 100.0, 0)

ent2.KeepForce(0, 0, -300)